package ru.pb.auth.network.engine.auth.packets.receivable;

import ru.pb.auth.network.engine.auth.packets.FromAuthClientToAuthServerPacket;
import ru.pb.auth.network.engine.auth.packets.sendable.PROTOCOL_BASE_GET_MYINFO_ACK;

/**
 * Пакет запроса получения информации о персонаже и о друзьях(в некоторых версий клиента пб)
 * 
 * @author: DarkSkeleton
 * @version: 1.00
 */
public class PROTOCOL_BASE_GET_MYINFO_REQ extends FromAuthClientToAuthServerPacket
{
	@Override
	public void readImpl()
	{
		_log.info("PROTOCOL_BASE_GET_MYINFO_REQ: " + readH());
	}

	@Override
	public void runImpl()
	{
		if(getClient() != null)
		{
			getClient().sendPacket(new PROTOCOL_BASE_GET_MYINFO_ACK(getClient().getAccount()));
			// getClient().sendPacket(new PROTOCOL_BASE_GET_MYFRIENDS_ACK());
		}
		else
		{
			_log.info("PROTOCOL_BASE_GET_MYINFO_REQ: NULL Client");
		}
	}
}